applyAssetSourceAsset

abstract suspend fun applyAssetSourceAsset(sourceId: String, asset: Asset): DesignBlock?

Applies an asset to the active scene using custom AssetSource.applyAsset function.

Return

the newly created block or null if no new block is created.

Parameters

sourceId

the sourceId of AssetSource which AssetSource.applyAsset function is going to be invoked.

asset

the asset to be applied to the active scene. Normally it's a single result of a findAssets query.


abstract suspend fun applyAssetSourceAsset(sourceId: String, asset: Asset, block: DesignBlock)

Applies an asset to the block using custom AssetSource.applyAsset function.

Parameters

sourceId

the sourceId of AssetSource which AssetSource.applyAsset function is going to be invoked.

asset

the asset that will be applied to the existing block. Normally it's a single result of a findAssets query.

block

the block that will be modified by the asset.